package edu.ccut.saturn.core;

import edu.ccut.osgi.test.IOSGiJunitService;
import edu.ccut.osgi.test.OSGiJunitServiceImpl;
import edu.ccut.saturn.core.impl.SaturnBundleService;
import edu.ccut.saturn.core.impl.SaturnPropertiesService;
/**
 * 服务工厂，用于获取服务，可以是SaturnBundle或是其他OSGiBundle的服务<br>
 * 不能实例化
 * @author TonyYan
 *
 */

public abstract class ServiceFactory {
	/**
	 * 获取bundle服务
	 */
	public static IBundleService getBundleService() {
		
		return SaturnBundleService.getInstance();
	}
	/**
	 * 获取Properties服务
	 */
	public static IPropertiesService getPropertiesService() {
		
		return SaturnPropertiesService.getInstance();
	}
	/**
	 * 获取OSGiJunit服务
	 */
	public static IOSGiJunitService getOSGiJunitService() {
		
		return OSGiJunitServiceImpl.getInstance();
	}
}	
